﻿@model List<SimCMS.Model.Simadminmenu>
           <div class="pageContent">
<form method="post" action="/Admin/SetRolePermisson" class="pageForm required-validate" onsubmit="return validateCallback(this)">
<div class="pageContent" >
 <div class="panelBar">
                <ul class="toolBar">
                    
                    <li><div class="buttonActive"><div class="buttonContent"><button type="submit">保存</button></div></div></li>
                    <li class="line">line</li>
                </ul>
            </div>
<div style="float:left; display:block; margin:1px 10px 0px 0px; overflow:auto; width:200px; height:100%; border:solid 1px #CCC; line-height:21px; background:#FFF;">
<ul class="tree treeFolder treeCheck expand" >
	<li><a >后台管理</a>
		<ul>
            @{int Mlevel = 1;}
            @foreach (var MenuModel in Model.Where(o => SimCMS.Common.CommonHelper.GetParentId(0, o.MLevelTree) == 1 && o.Id != 1))
            {

                if (MenuModel.MLevel == 1)
                {
                    if (MenuModel.MLevel != Mlevel)
                    {
                                                @:</ul>
					                @:</li>
                            }
                  @:<li><a tname="name" tvalue="@MenuModel.Id">@MenuModel.MenuName</a>
                   @:<ul>
                   Mlevel = MenuModel.MLevel;
                }
                else if (MenuModel.MLevel == 2)
                {
                             @:<li><a tname="name" tvalue="@MenuModel.Id">@MenuModel.MenuName</a>
                              Mlevel = MenuModel.MLevel;
                }

            }
		</ul>
	</li>
</ul>
</div>
<div style="float:left; display:block; margin:1px 10px 0px 0px; overflow:auto; width:200px; height:200px; border:solid 1px #CCC; line-height:21px; background:#FFF;">
<ul class="tree treeFolder treeCheck expand">
	<li><a href="tabsPage.html" target="navTab">新闻管理</a>
			<ul>
            @{int SMlevel = 1;}
            @foreach (var MenuModel in Model.Where(o => SimCMS.Common.CommonHelper.GetParentId(0, o.MLevelTree) == 20 && o.Id != 20))
            {

                if (MenuModel.MLevel == 1)
                {
                    if (MenuModel.MLevel != SMlevel)
                    {
                                                @:</ul>
					                @:</li>
                            }
                  @:<li><a tname="name" tvalue="@MenuModel.Id">@MenuModel.MenuName</a>
                   @:<ul>
                   SMlevel = MenuModel.MLevel;
                }
                else if (MenuModel.MLevel == 2)
                {
                             @:<li><a tname="name" tvalue="test1">@MenuModel.MenuName</a>
                              SMlevel = MenuModel.MLevel;
                }

            }
		</ul>
	</li>
</ul>
</div>

        </div>
</form>
</div>